package GUI;
import java.awt.Color;
import java.util.Vector;

import javax.swing.JFrame;

/**
 * the GUI window in which we can see the results' graphs.
 */
public class GUIManager 
{
	private int height = 600;
	private int width = 800;
	private JFrame mainWin;
	private GraphHandler graphHandler;
	
	public GUIManager() 
	{
		mainWin = new JFrame("walrus");
		mainWin.setSize(width, height);
		mainWin.setLocation(150, 100);
		mainWin.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		graphHandler = new GraphHandler();
		
		mainWin.add(graphHandler);		
		mainWin.setVisible(true);
		
		
	}
	
	public void addSpline(Vector<Double> v, Color c)
	{
		GraphDescriber g = new GraphDescriber(v,c);
		graphHandler.addSpline(g);
	}
}
